Skip to content

Conversation

@gurukamath
Copy link
Contributor

πŸ—’οΈ Description

This PR re-factors the BAL code to align it more closely with the BlockEnvironment->TransactionEnvironment -> Message hierarchy in the specs.

πŸ”— Related Issues or PRs

N/A.

βœ… Checklist

Cute Animal Picture

Cute Animals - 5 of 12

@gurukamath gurukamath requested review from SamWilsn and fselmo December 3, 2025 12:03
@gurukamath gurukamath changed the title Bal refactor refactor(bal): Align BAL state_changes with the specs Env hierarchy Dec 3, 2025
@codecov
Copy link

codecov bot commented Dec 3, 2025

Codecov Report

❌ Patch coverage is 22.22222% with 21 lines in your changes missing coverage. Please review.
βœ… Project coverage is 82.47%. Comparing base (abee0f4) to head (e1a573c).
⚠️ Report is 4 commits behind head on eips/amsterdam/eip-7928.

Files with missing lines Patch % Lines
src/ethereum/forks/amsterdam/vm/interpreter.py 6.25% 15 Missing ⚠️
src/ethereum/forks/amsterdam/vm/eoa_delegation.py 0.00% 4 Missing ⚠️
src/ethereum/forks/amsterdam/utils/message.py 33.33% 2 Missing ⚠️
Additional details and impacted files
@@                   Coverage Diff                    @@
##           eips/amsterdam/eip-7928    #1836   +/-   ##
========================================================
  Coverage                    82.46%   82.47%           
========================================================
  Files                          797      797           
  Lines                        47987    47984    -3     
  Branches                      4341     4338    -3     
========================================================
+ Hits                         39574    39576    +2     
+ Misses                        7927     7922    -5     
  Partials                       486      486           
Flag Coverage Ξ”
unittests 82.47% <22.22%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

πŸš€ New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • πŸ“¦ JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@fselmo
Copy link
Contributor

fselmo commented Dec 3, 2025

@gurukamath #1841 is the larger refactor we talked about. We will review this tomorrow on the call but putting it here for visibility.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants